using System;

namespace flickr.api.communication
{
    public class FlickrMethod
    {
        public readonly string Name;
        public readonly AuthenticationLevel AuthenticationLevel;

        public FlickrMethod(string name) : this(name, AuthenticationLevel.None)
        {}

        public FlickrMethod(string name, AuthenticationLevel level)
        {
            if (name == string.Empty || name == null || name.Length == 0)
            {
                throw new ArgumentNullException("Method Name is required");
            }

            Name = name;
            AuthenticationLevel = level;
        }
    }
}